package com.itfreer.demo.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.itfreer.power.PowerParameter;

/**
 * 用户权限配置
 */
@Configuration
public class PowerConfiguration {

	/**
	 * 用户权限管理的配置
	 * 
	 * @return
	 */
	@Bean(name = "powerParameter")
	public PowerParameter powerParameter() {
		PowerParameter config = new PowerParameter();
		config.setSupportSuperAdmin(true);
		config.setAllUserIsSuperAdmin(false);
		config.setSupportTenant(false);
		return config;
	}

}